treestore: Initialize some local variables
authorMatthias Clasen <mclasen@redhat.com>
Wed, 17 Mar 2021 11:51:27 +0000 (07:51 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 17 Mar 2021 11:51:27 +0000 (07:51 -0400)
gcc 11 is warning that these might be used uninitialized
otherwise.

gtk/gtktreestore.c

index c02dcd3a1720b25b8286afa647ff1f707d446b70..c542af00ba4e9110fd45718f3b94e7bb7b2bfb3c 100644 (file)
@@ -2471,7 +2471,9 @@ gtk_tree_store_move (GtkTreeStore *tree_store,
   GNode *parent, *node, *a, *b, *tmp, *tmp_a, *tmp_b;
   int old_pos, new_pos, length, i, *order;
   GtkTreePath *path = NULL, *tmppath, *pos_path = NULL;
-  GtkTreeIter parent_iter, dst_a, dst_b;
+  GtkTreeIter parent_iter = { 0, };
+  GtkTreeIter dst_a = { 0, };
+  GtkTreeIter dst_b = { 0, };
   int depth = 0;
   gboolean handle_b = TRUE;